import request from '@/utils/request'

// 查询报警信息列表
export function listStationWarnInfo(query) {
  return request({
    url: '/station/stationWarnInfo/list',
    method: 'get',
    params: query
  })
}

// 查询报警信息详细
export function getStationWarnInfo(id) {
  return request({
    url: '/station/stationWarnInfo/' + id,
    method: 'get'
  })
}

// 新增报警信息
export function addStationWarnInfo(data) {
  return request({
    url: '/station/stationWarnInfo',
    method: 'post',
    data: data
  })
}

// 修改报警信息
export function updateStationWarnInfo(data) {
  return request({
    url: '/station/stationWarnInfo',
    method: 'put',
    data: data
  })
}

// 删除报警信息
export function delStationWarnInfo(id) {
  return request({
    url: '/station/stationWarnInfo/' + id,
    method: 'delete'
  })
}

// 清空信息
export function clearStationWarnInfo() {
  return request({
    url: '/station/stationWarnInfo/clear',
    method: 'delete'
  })
}

